﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Montezuma
{
    class Porta
    {
        public Texture2D textura;
        public Vector2 posicao;
        public bool fechada = true;
        public int tipo;
        public Rectangle retangulo;
        public bool ativo = false;

        public Porta(Texture2D textura, Vector2 posicao, int tipo)
        {
            this.textura = textura;
            this.posicao = posicao;
            this.tipo = tipo;
            retangulo = new Rectangle((int)posicao.X, (int)posicao.Y, textura.Width, textura.Height);
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            ativo = true;
            spriteBatch.Draw(textura, retangulo, new Rectangle(0, 0, textura.Width, textura.Height), Color.White);
        }
    }
}
